import {get_data} from "../types/home";
import {createAction} from 'redux-actions'

import http from '../../common/utils/httpUtil';
import {GOOD_LIST} from "../../common/api/api";


export const getData = createAction(get_data, (page = 1, pageSize = 10) => {
  let url = GOOD_LIST;

  let params = {
    page: page,
    pageSize: pageSize,
  };
  return http.myRequest(url, params, http.GET);
});
